package com.wisevar.thirdplatform.gateway.controller.openapi;

import com.wisevar.thirdplatform.gateway.api.CompanyApi;
import com.wisevar.thirdplatform.gateway.aspect.OpenApiRateLimit;
import com.wisevar.thirdplatform.gateway.aspect.OpenApiWhiteIp;
import com.wisevar.thirdplatform.gateway.model.common.ApiResult;
import com.wisevar.thirdplatform.gateway.model.common.IdResult;
import com.wisevar.thirdplatform.gateway.model.company.SyncCompanyParam;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CompanyApiController implements CompanyApi {

    @OpenApiWhiteIp
    @OpenApiRateLimit
    @Override
    public ApiResult<IdResult> sync(@RequestBody /*@Validated*/ SyncCompanyParam param) {
        //--
        return ApiResult.ok();
    }
}
